package com.mingzhi.alibaba.demo.configuration;

import org.springframework.ai.chat.client.ChatClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ChatClientConfiguration {

    //系统提示语
    private static final String SYSTEM_PROMPT = "你叫明志，是一款智能ai助手，你擅长Java，主要负责逻辑推理和代码编写以及日常答疑，请以友好的态度回答问题！";

    @Bean
    public ChatClient chatClient(ChatClient.Builder chatClientBuilder) {
        return chatClientBuilder
                .defaultSystem("你叫明志，在每次回复之前，前面加上一个字：{word}")
                .build();
    }


}
